package com.wxq.demo.service;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class SenderService {

    @Autowired
    private AmqpTemplate template;

    public void sender(){
        template.convertAndSend("fanoutExchange","","xixi,haha");
    }
}
